// 登录
const login = '/boda/user/index'

// banner图
const getBanner={
	list:'/boda/admin/getBanner'
}

//首页商品列表
const goodsList={
	list:'/boda/goods/getGoodsList',
}
//特价商品列表  /boda/goods/getSaleGoodsList
const specialGoodList={
	list:'/boda/goods/getSaleGoodsList'
}

//商品详情 /boda/goods/getGoodsDetail
const goodsDetail={
	list:'/boda/goods/getGoodsDetail'
}
//我的余额
const userBalance = {
  balance: '/boda/user/getUserBalance', //余额
  list: '/boda/user/getUserIntegralList', //账户记录
  toCash: '/boda/user/apply' ,//提现
  getApplyList:'/boda/user/getApplyList',//提现记录列表
}
//我的收益
const userProfit = {
  profit: '/boda/user/getUserIncome', //收益金额
  teamNum: '/boda/user/getMyTeamListCount', //推荐会员数
  list: '/boda/user/getUserIncomeList' //收益记录
}
//我的积分
const userIntegral = {
  integral: '/boda/user/getUserIntegral', //积分
  list: '/boda/user/getUserIntegralList' ,//积分流水
  rule:'/boda/admin/getIntegralRule',//积分规则
}
//我的优惠券
const userCoupon = {
  list: '/boda/goods/getDiscountList' ,//优惠券列表
}
//我的团队
const userTeam = {
  teamNum: '/boda/user/getMyTeamListCount', //推荐的人数
  list: '/boda/user/getMyTeamList' //团队列表
}
//个人中心首页
const userCenter = {
  servicePhone: '/boda/admin/getServicePhone', //客服电话
  userData: '/boda/user/getUserInfo' ,//个人信息
}
//常见问题
const problemList = {
  list: '/boda/admin/getProblemList', //问题列表
  answer: '/boda/admin/getResultById' //回答列表
}

// 商品分类 /boda/goods/getsort
const getsort={
	list:'/boda/goods/getsort'
}
// 获取所有的二级分类  /boda/goods/getsortAll
const getsortAll={
	list:'/boda/goods/getsortAll'
}
//获取评论列表   /boda/goods/getCommentList
const getCommentList={
	list:'/boda/goods/getCommentList'
}

// 添加到购物车   /boda/user/addGoodsOfCart    /boda/user/deleteCartById
const addGoodsOfCart={
	list:'/boda/user/addGoodsOfCart',
	
}
// 购物车列表   /boda/user/getCartDetailById  
const getCartDetailList={
	list:'/boda/user/getCartDetailById',
	del:'/boda/user/deleteCartById',//删除购物车
	update:'/boda/user/updateGoodsCountOfCart', //增减商品数量
}
//购物车=>订单详情  /boda/user/getCartDetail
const orderDetail={
	Detail:'/boda/user/getCartDetail'  ,
	createOrder:'/boda/order/createOrder',//新建订单
	integralMore:'/boda/order/getIntegrationRule',//商品可用积分规则
}

// 地址    /boda/user/getTakeAddressList
const addressList={
	list:'/boda/user/getTakeAddressList',  //收货地址列表
	defaultList:'/boda/user/updateDefaultAddress',  //更改默认收货地址
	add:'/boda/user/addTakeAddress',  //添加收货地址 
	deleteAdress:'/boda/user/deleteTakeAddress',  //删除收货地址
	updateAdress:'/boda/user/updateTakeAddress' ,// 修改收货地址
	addressDetail:'/boda/user/getTakeAddressDetail',// 收货地址详情
}

// 网点  
const cooperation={
	list:'/boda/user/getCooperationList', //网点列表
	getCooperationById:'/boda/user/getCooperation', //通过id找网点
}
// 我的订单  
const userOrder = {
  list: '/boda/order/getOrderListById', //订单列表
  deleteOrder: '/boda/order/deleteOrderById', //删除订单
  cancelOrder: '/boda/order/getOrderByOrderid', //取消订单
  order: '/boda/order/getOrderDetailById' ,//订单详情
  orderById:'/boda/order/getDetailById',//根据订单id获取详情
  affirmOrder:'/boda/order/affirmOrder', //确认订单
  refundOrder:'/boda/order/refundOrder', //退款
  reminder :'/boda/order/reminder',//提醒发货
}
// 支付
const pay={
	BalancePay:'/boda/order/BalancePay', //余额支付
  WxPay: '/boda/order/WxPay',//微信支付
  updateOrderPayType: '/boda/order/updateOrderPayType',//修改订单支付方式
}

// 优惠券   /boda/goods/getTicketList
const Ticket={
	list:'/boda/goods/getTicketNew',   //优惠券列表
	receive:'/boda/goods/addDiscount' , //领取优惠券
}
// 评论
const userComment = {
  goods: '/boda/goods/getGoodsDetail', //商品详情
  comment: '/boda/goods/addComment',//提交评论
}
// 手机
const phone={
	addPhone:'/boda/user/addPhone', //实名添加手机号码
	createCode:'/boda/user/createCode',//生成验证码
	verifyCode:'/boda/user/verifyCode',//验证验证码
}
// 申请团长
const applyTeam = {
  apply: '/boda/user/applyColonel', //申请团长
  type: '/boda/user/getColonelStatus', //获取申请状态
}
// 订单配送
const courier = {
  list: '/boda/order/getExpressOrder', //订单列表
  success: '/boda/order/confirmDelivery', //确定送达
  deleteOrder: '/boda/order/deleteOrderByCourier', //删除订单
}

// 支付密码
const password={
	PayPassword:'/boda/user/addPayPassword'
}

// 充值
const recharge={
	BalanceAdd:'/boda/order/BalanceAdd',
	list:'/boda/admin/getAddPriceList',//充值列表
	getrechargeList:'/boda/user/getrechargeList',//充值记录列表
}

// 科普文章
const article = {
  list: '/medicalPopular/selectMedicalPopularListInfo'
}

// 搜索历史记录
const searchHistory={
	list:'/boda/user/getKeyById',
	deleteUserKey:'/boda/user/deleteUserKey'
}
// 上传文件
const fileupload = {
  // path: 'http://192.168.2.2:8111/boda/goods/fileupload'
  path:'/boda/goods/uploadCommentPicture'
}
// 二维码我的团队
const createwxaqrcode ={
	list:'/boda/user/createwxaqrcode'
}
// 综合修改绑定密码手机号
const bindTelAndPossWord = {
  list: '/boda/user/addPayPasswordAndPhone'
}

// 获取微信的sessionKey，和手机号
const bindController= {
  getSessionKey: '/boda/user/getSessionKey',
  getTel:'/boda/user/getTel'
}
module.exports = {
  login,getBanner,
  goodsList,specialGoodList,goodsDetail,
  getsort,getsortAll,getCommentList,addGoodsOfCart,
  getCartDetailList, userBalance,
 userProfit, userIntegral, userCoupon, userTeam, userCenter, problemList,
  orderDetail, addressList, cooperation, userOrder, pay, Ticket, userComment,
  phone, password, applyTeam, courier, recharge, searchHistory, fileupload,
createwxaqrcode,
 article,
  bindTelAndPossWord,
  bindController
}